﻿using System.Collections.Generic;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 产品分类
    /// </summary>
    public class VProductCategory : BaseVModel
    {
        private string _categoryCode = string.Empty;
        private string _categoryName = string.Empty;

        #region Public Property

        ///<Summary>
        /// 分类编码
        ///</Summary>
        public string CategoryCode
        {
            get { return string.IsNullOrWhiteSpace(_categoryCode) ? string.Empty : _categoryCode; }
            set { _categoryCode = value; }
        }

        ///<Summary>
        /// 分类名称
        ///</Summary>
        public string CategoryName
        {
            get { return string.IsNullOrWhiteSpace(_categoryName) ? string.Empty : _categoryName; }
            set { _categoryName = value; }
        }

        ///<Summary>
        /// 级别
        ///</Summary>
        public int Level { get; set; }

        ///<Summary>
        /// 父级ID
        ///</Summary>
        public int ParentId { get; set; }
        #endregion

        /// <summary>
        /// 子集
        /// </summary>
        public List<VProductCategory> Children { get; set; } = new List<VProductCategory>();
    }
}
